ZSB-Ability to block specific shops/stores?-Anyone
FishTsdotcom
Posted: Thursday, October 29, 2009 9:25:10 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 2/27/2008
Posts: 1,789
Location: Pascagoula
Just wondering if anyone has tried or had any luck finding a way to block specific shops or stores.

Im really getting tired of items that are purposely mis-tagged or just dont even belong in a relevant category.

Ive tried a few different things but nothing seeming to work as of yet.

Any idea's?
FNolan
Posted: Thursday, October 29, 2009 9:53:05 AM

Groups: Member

Joined: 5/12/2008
Posts: 2,131
I haven't tried it with the ZSB but here's a line of code I use in my CMS that keeps certain modules from being displayed in the "Top 10 Viewed" area.


Code:
$result = $db->sql_query( "select modulename, hitstoday from ".$prefix."_msanalysis_modules WHERE modulename != 'GCalendar' AND modulename != 'News' AND modulename != 'MS Analysis' AND modulename != 'Under Construction' AND modulename != 'Page Test' AND modulename != 'Ruxiques Samples' AND modulename != 'IFrame Test' AND modulename != 'Page Test 2' And modulename != 'Your Account' And modulename != 'Downloads' And modulename != 'SEO Tools' AND modulename != 'Forums' AND modulename != 'Downloads' AND modulename != 'Web Links' AND modulename != 'Test Slideshow' AND modulename != 'Downloads' AND modulename != 'Featured Store' AND modulename != 'Past Featured Stores' AND modulename != 'Surveys' AND modulename != 'Week One' AND modulename != 'Week Two' AND modulename != 'Week Three' AND modulename != 'Surgar vs Spice' AND modulename != 'Stories Archive' AND modulename != 'Search' AND modulename != 'Volume Bonuses' order by hitstoday DESC" );


You might be able to modify it so the ZSB doesn't load certain stores by changing this . . .

Code:
$result = $db->sql_query( "select modulename, hitstoday from ".$prefix."_msanalysis_modules WHERE modulename != 'GCalendar' AND modulename != 'News'


to

Code:
$result = WHERE contributorHandle != 'FNolan' AND contributorHandle != 'fishteesdotcom'


The syntax "!=" translate to "doesn't equal" so if the result doesn't equal any of the stores listed (in this case your store and mine) it'll display the info. Ypu'll probably will have to change the "$result" to whatever it is Zazzle uses.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded