Skip to content
JoomlaProdigy Forum
Welcome, Guest
Please Login or Register.
Lost Password?
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:reflectionJP TIP

#819
switt (User)
Fresh Boarder
Posts: 4
graphgraph
Click here to see the profile of this user
reflectionJP TIP 2007/02/22 21:07 Karma: 0  
TIP: if you have installed joomla in a sub-directory, not at the root level of your domain,

add the name of this directory to the path in the "relectionjp.php" file

Code:

 function botreflectionjp_replacer ( &$matches ) {     $thisParams explode("|",$matches[1]);      //parameters instructions     // if (sizeof($thisParams) != 2) return "Not enough parameters! You must have 3 parameters  separated by \"|\" : e.g. image ";     //parameters     $img = $thisParams[0];     $float = $thisParams[1];     //$width = $thisParams[2];             $img = "$mosConfig_live_site/directory_name/images/stories/$img";     $imgurl = "<img style=\"float:$float;margin:5px;\" class=\"reflect\" xsrc=\"$img\" alt=\"image\"  hspace=\"5\" vspace=\"5\" />";     return $imgurl;     }



this worked in my situation where joomla is
installed "mydomain.com/cms2"
for instance, in the above code, i replaced
"directory_name" with "cms2"


thanx, with some help from the JoomlaProdigy
i was able to identify the problem.
sWitt--OUT

Post edited by: switt, at: 2007/02/22 21:08
  The administrator has disabled public write access.
#1246
horus_68 (User)
Junior Boarder
Posts: 5
graphgraph
Click here to see the profile of this user
Re:reflectionJP TIP 2007/04/08 14:42 Karma: 0  
I Second that. Just to clear the code section:

If you are trying in a local install (JSAS) and your site url its http://localhost:85/testsite
than you have to edit the file mambots/content/reflectionjp.php near line 36 and add the site folder

from:
Code:

 $img "$mosConfig_live_site/images/stories/$img";    


to
Code:

 $img "$mosConfig_live_site/testsite/images/stories/$img";



Oh... and just one image per article will get the code!

Post edited by: horus_68, at: 2007/04/08 14:43
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop

Buy Now

Recommended

Search

Recommended

Joomla Templates

Member Login

Refreshing page..Please wait!
                       Lost Password?    Can't Login?