php forum
php mysql forum
php mysql smarty
 
Page 4 of 5 < 1 2 3 4 5 >
Topic Options
#281135 - 03/02/05 05:15 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
actually looking back over this coding I would figure its more in the .php then in the .tmpl. with all the spanning and diving going on could be the issue.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281136 - 03/02/05 05:33 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay had to remove the showflat.php.. site rulez say don't post full file.. you can post code snipets.. anyways I checked you file and it works on my site but I noticed on the bottom of the showflat.php that you have<br /><br />// Adsense hack start<br /> $adsense = "";<br /> if ( stristr(",{$config['adsense']},", ",$Board,") ) {<br /> include("$thispath/templates/$tempstyle/adsense.tmpl");<br /> }<br />// Adsense hack finish<br /><br /><br />try removing those lines and retest.. you MAY have a problem in the adsense.tmpl
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281137 - 03/03/05 12:37 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
dparvin Offline
Member

Registered: 08/08/04
Posts: 184
Loc: UK
[]scroungr said:<br />okay had to remove the showflat.php.. site rulez say don't post full file.. you can post code snipets.. anyways I checked you file and it works on my site but I noticed on the bottom of the showflat.php that you have<br /><br />// Adsense hack start<br /> $adsense = "";<br /> if ( stristr(",{$config['adsense']},", ",$Board,") ) {<br /> include("$thispath/templates/$tempstyle/adsense.tmpl");<br /> }<br />// Adsense hack finish<br /><br /><br />try removing those lines and retest.. you MAY have a problem in the adsense.tmpl [/]<br /><br />I will try that and let you know<br /><br /> [] site rulez say don't post full file.. [/] <br /> <img src="http://www.ubbdev.com/forum/images/graemlins/doah.gif" alt="" />
_________________________
parentforum.org

Top
#281138 - 03/03/05 07:53 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: DMClark]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay the problem is you are allowing html in the signature.. so you cannot use the signature part as this is written.. you will need to disbale the signature stuff in the shop and in showflat.php change <br /> <br />
Code:
	// ------------------------- <br />// Build Board Query For Shop Mod &amp; Show Funky Names <br />		$query=" <br />			SELECT titleeffectstatus <br />			FROM {$config['tbprefix']}ShopMembers <br />			WHERE uid = '$user[U_Number]' <br />		"; <br />	   	$stq = $dbh -&gt; do_query($query); <br />		list($titleeffectstatus)= $dbh -&gt; fetch_array($stq); <br />		$query=" <br />			SELECT glowcolor,titleeffect,hexcolor, cstatus, imagesignature, largersignature, avatar <br />			FROM {$config['tbprefix']}ShopMembers,{$config['tbprefix']}Users <br />			WHERE U_Number = '$usernum' &amp;&amp; U_Number = uid <br />		"; <br />	   	$stz = $dbh -&gt; do_query($query); <br />		list($glowcolor, $titleeffect, $hexcolor, $cstatus, $imagesignature, $largersignature, $newavatar)= $dbh -&gt; fetch_array($stz); <br /> <br />		if ($config['sigimage']){ <br /> <br />			if ($Signature) { <br />				$Signature = str_replace("\n","&lt;br /&gt;",$Signature); <br />				$Signature = "&lt;br /&gt;&lt;br /&gt;--------------------&lt;br /&gt;$Signature"; <br />			} <br />			if ($ShowSigs == "no" || !$addsig) { <br />				$Signature = ""; <br />			} <br />		} <br />		else{ <br />			if ($imagesignature != 'ON') { <br />				$Signature = preg_replace("/&lt;img src=\"([^\&gt;]*)\"&gt;/i","",$Signature); <br />			} <br />			if ($largersignature != 'ON' &amp;&amp; $imagesignature == 'ON') { <br />				preg_match("/signature\/[[:alnum:]]{3,40}\.[[:alnum:]]{3,4}/i",$Signature,$matches); <br />				if($matches){ <br />					$Signature = "&lt;img src=\"{$config['imageurl']}/$matches[0]\"&gt;"; <br />				} <br />				else{ <br />					$Signature = substr($Signature, 0, $config['Sig_length']); <br />				} <br />			} <br />			elseif ($largersignature != 'ON' &amp;&amp; $imagesignature != 'ON') { <br />				$Signature = substr($Signature, 0, $config['Sig_length']); <br />			} <br />			if($Signature){ <br />				$Signature = str_replace("\n","&lt;br /&gt;",$Signature); <br />				$Signature = "&lt;br /&gt;&lt;br /&gt;--------------------&lt;br /&gt;$Signature"; <br />			} <br />		} <br />// End Build Board Query For Shop Mod &amp; Show Funky Names <br />// ------------------------- <br />		}
<br /> <br /> <br />to <br /> <br /> <br />
Code:
 <br />// ------------------------- <br />// Build Board Query For Shop Mod &amp; Show Funky Names <br />		$query=" <br />			SELECT titleeffectstatus <br />			FROM {$config['tbprefix']}ShopMembers <br />			WHERE uid = '$user[U_Number]' <br />		"; <br />	   	$stq = $dbh -&gt; do_query($query); <br />		list($titleeffectstatus)= $dbh -&gt; fetch_array($stq); <br />		$query=" <br />			SELECT glowcolor,titleeffect,hexcolor, cstatus, imagesignature, largersignature, avatar <br />			FROM {$config['tbprefix']}ShopMembers,{$config['tbprefix']}Users <br />			WHERE U_Number = '$usernum' &amp;&amp; U_Number = uid <br />		"; <br />	   	$stz = $dbh -&gt; do_query($query); <br />		list($glowcolor, $titleeffect, $hexcolor, $cstatus, $imagesignature, $largersignature, $newavatar)= $dbh -&gt; fetch_array($stz); <br /> <br />// End Build Board Query For Shop Mod &amp; Show Funky Names <br />// ------------------------- <br />
<br /> <br /> <br />in the showflat.php that will set it back to the stock except for the signature


Edited by scroungr (03/03/05 07:57 PM)

Top
#281139 - 03/05/05 06:12 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
dparvin Offline
Member

Registered: 08/08/04
Posts: 184
Loc: UK
Thank you scroungr for this and your time the other day.<br />I have not had time to try this out yet. Will let you know if it is all ok.<br /><br /><img src="http://www.ubbdev.com/forum/images/graemlins/thankyousign.gif" alt="" />
_________________________
parentforum.org

Top
#281140 - 03/06/05 11:38 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: DMClark]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
yeah cause your using html and graemlins in your sigs ad I limited the mechanism so it only allows one image per person it won't work without a major rewrite...so its best to leave out the signature stuff in your usuage.. the rest should work.. the shadowed names, the glowing names, and all the rest of the abilities...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281141 - 03/06/05 01:44 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I've just installed this and I have some issues/questions:<br />What all do I need to do to make this work? I have turned off the display name changes and images in the signature. What do I have to do for the reset signature and the larger signature items to work?<br /><br />Also, I'm having issues with the templates:<br />It looks ok here, but it's not:<br />http://www.laondalatina.com/foros/shop.php<br />Because on the rest of the site, I have a vertical bar on the right where I plan to add content:<br />http://www.laondalatina.com/foros/<br />I believe there is an issue with missing table tags.<br />Here it gets hairy:<br />http://www.laondalatina.com/foros/shopcategory.php?Cat=&cid=1<br />Probably another template issue.<br /><br />Finally, when I go to the Shop Admin area, nothing happens when I click on Categories, Items, Add Points, Show User Stats. It keeps bringing me back to the settings screen.<br /><br />Any suggestions?
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#281142 - 03/07/05 01:15 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: luan]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I will take a look in the morning at the code. I see a possible problem.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281143 - 03/07/05 07:36 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay uploaded a new zip.. should fix some of the issues...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281144 - 03/08/05 07:07 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I haven't uploaded ALL the new files, but I did update the 6.5 .php files and the templates, and everything looks the same.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#281145 - 03/09/05 01:01 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: luan]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm I see this error<br /><br />SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY displayorder, catname' at line 4<br />SQL Error #: 1064<br />Query: SELECT * FROM w3t_ShopCats WHERE cid='0' AND (status = 'on' || owner = ) ORDER BY displayorder, catname <br /><br />and you can't have the new files if your still getting that error cause I fixed it?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281146 - 03/09/05 11:24 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
[]scroungr said:<br />Hmmm I see this error<br /><br />SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY displayorder, catname' at line 4<br />SQL Error #: 1064<br />Query: SELECT * FROM w3t_ShopCats WHERE cid='0' AND (status = 'on' || owner = ) ORDER BY displayorder, catname <br /><br />and you can't have the new files if your still getting that error cause I fixed it? [/]<br /><br />What script did you see that error on? I don't see it. Another problem I've noticed is that when I click on Bank, it tells me how many points I have. Though when I click on any of the links on that page (Finances, Credit, Debit, Send Points) the URL changes, but the actual content on the page doesn't. Every link takes me nowhere, or better put, I stay at the page that says how many points I have.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#281147 - 03/09/05 02:17 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: luan]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm send me a PM with some login information I wanna check a few things
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281148 - 03/09/05 05:35 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
Let me go create a new admin and I'll PM you the info.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#281149 - 03/10/05 08:54 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: luan]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok think I see what ya did... 1) delete all the existing shopfiles.. download new zip.. the way I rewrote it all the shop files will be placed in a director called theshop to be placed inside the threads directory.... I took the files out of languages and templates and moved em all inside the directory so it will make it easier to update and vice-a-versa
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281150 - 03/10/05 11:47 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I uploaded the new .zip to the threads directory and unzipped it there and now all the files are in the /theshop directory. It still doesn't appear to have changed anything. The layout is broken by the shop on all the pages, except strangely enough, the admin area. In the admin area and the bank area, none of the links do anything either.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#281151 - 03/10/05 08:40 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: luan]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
hmm okay I will log in and take a look
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281152 - 03/10/05 10:45 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay a few questions.. do you have globals turned on or off? does your server allow the super globals $_POST and instead makes you use the obsolete $HTTP_POST_VARS and $HTTP_GET_VARS instead?<br /><br />about the tables its only when you go into say the features table from what I see... that splits the table the features are lsited on and puts it below the menu you have on the right? try this shopcategory.tmpl and let me know if it fixes it.. I think there was an extra </table> closure...


Attachments
125995-shopcategory.tmpl.txt (16 downloads)

_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281153 - 03/10/05 11:11 PM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
BTW if your server can't use SUPER Globas $_POST and $_GET try adding this to the top of the scripts.. MAY work<br /><br /> // FORCE USE OF GLOBAL VARIABLES<br /> $version_info = explode('.', phpversion());<br /> if ($version_info[0] < 4 || ($version_info[0] > 3 && $version_info[1] < 1)) {<br /> $_POST = $HTTP_POST_VARS;<br /> $_GET = $HTTP_GET_VARS;<br /> }<br /><br /><br />then again this could fail because your server won't allow the phpversion() command...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281154 - 03/11/05 10:11 AM Re: Finished-[6.4-6.5] Feature Shop 1.6 [Re: 234234]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
[]scroungr said:<br />okay a few questions.. do you have globals turned on or off? does your server allow the super globals $_POST and instead makes you use the obsolete $HTTP_POST_VARS and $HTTP_GET_VARS instead?<br /><br />about the tables its only when you go into say the features table from what I see... that splits the table the features are lsited on and puts it below the menu you have on the right? try this shopcategory.tmpl and let me know if it fixes it.. I think there was an extra </table> closure... [/]<br /><br />I'm not sure where to find the information regarding globals, so I'll ask Josh, since my site's on one of his servers <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> Thanks, scroungr. Hopefully we'll get this thing fixed. I'm glad it wasn't just my imagination.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
Page 4 of 5 < 1 2 3 4 5 >


Moderator:  Ian_W 
Who's Online
0 registered (), 22 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
Yesterday at 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks