vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Styles for Premium Members (https://vborg.vbsupport.ru/showthread.php?t=48953)

amykhar 05-15-2003 07:19 PM

That would be a bit trickier. I can't guarantee that I will look into it anytime soon because I am rather swamped at work.

Amy

corsacrazy 05-15-2003 07:24 PM

^ no probs :D

Kohhal 06-24-2003 11:52 AM

Nice hack, using it so I can work on new styles in private :D

corsacrazy 06-24-2003 12:37 PM

^ same :p

Blood Lust 09-04-2003 03:19 PM

I am getting a parse error

Parse error: parse error in /home/thelega/public_html/forum/admin/style.php on line 587

I am running 2.3.2

$styleinfo=$DB_site->query_first("SELECT templatesetid,replacementsetid,title FROM style WHERE styleid='$dostyleid'");

line 587= echo "<p>"<b>$styleinfo[title]</b>""
.makelinkcode("edit style properties","style.php?s=$session[sessionhash]&action=edit&editstyleid=$dostyleid")
.makelinkcode("edit replacements","replacement.php?s=$session[sessionhash]&action=modify&expandset=$styleinfo[replacementsetid]")
.makelinkcode("edit templates","template.php?s=$session[sessionhash]&action=modify&expandset=$styleinfo[templatesetid]")
."</p>\n";

Can anyone help me please?

amykhar 09-04-2003 03:56 PM

You can't use double quotes inside double quotes like that on line 587. If you use "" to designate a string, you should use ' ' inside the string and not ""

Amy

Blood Lust 09-04-2003 04:36 PM

thank you thank you thank you :D

jp2 10-25-2003 11:17 AM

question: would it be posible to set it so that after a set number of posts the style changes?

SWFans.net 10-26-2003 08:06 PM

Quote:

Originally Posted by amykhar
I did not incorporate it into register.php because my members have to register first before they can become premium members. The paypal integration requires that their username already exist. Therefore, people registering can only choose from the non-premium styles.

Would you happen to have a releasable version of a paypal integration hack? That would be so sweet to have. :D

amykhar 10-26-2003 08:34 PM

It was a crude system that I never released for security reasons. I now use vbulletin 3, which has it built in. Sorry. Y'all really should upgrade to 3 if you want the features that 3 has.

SWFans.net 10-26-2003 08:59 PM

Thanks for the honest answer.

iceman-x 12-17-2003 01:14 AM

Quote:

Originally Posted by amykhar
I did not incorporate it into register.php because my members have to register first before they can become premium members. The paypal integration requires that their username already exist. Therefore, people registering can only choose from the non-premium styles.

Regarding the second question, I would simply change This:

Code:

$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");
to this:

Code:

if ($bbuserinfo[premium]{
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect>0 GROUP BY user.styleid");
}
else {
 $allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");
}



Hey, i cant make this work. i get the same error every time i tryed. error at line 67.

this line:

$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect>0 GROUP BY user.styleid");

Can any one help me. thanks.

Beani 01-13-2004 08:23 AM

I followed the text file exactly yet whenever i edit the global.php file i get this

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/*****/global.php:391) in /home/*****/*****/admin/functions.php on line 1723

Showing up above the header of a scheme for some users, though it works perfectly for me, anyone know whats wrong?

Alex Carter 04-09-2004 02:04 PM

Fantastic hack, worked like a charm. Really good for our contributors. :)

Edison Chen 06-10-2004 11:26 AM

Just a little problem here. I've already followed all the instructions. Only a tiny problem though. Everytime I make someone a premium member, it will not stay that way adn make the person not premium again.

How do I fix that?


All times are GMT. The time now is 02:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01319 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete