vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Member of the day (https://vborg.vbsupport.ru/showthread.php?t=60368)

Corriewf 05-27-2005 01:01 PM

Quote:

Originally Posted by cdoyle
I'm not really sure what you mean by input the 'vairables using the hacks syntax' I'm new to this, could you give me an example of what you mean?

Thanks
Chris.


PHP Code:

Add a template with name "memberoftheday" (without the quotes), and this content:

-------------------------------------------------------------------
<
table class="" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="80%" align="center">
<
tr>
  
  <
td>
    <
b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
    
Posts$mday[posts]</span><br/>
    
Reputation$mday[reputation]</span><br/>
    <if 
condition="$mday[age]">Age$mday[age]</span><br/></if>
    <
br/>
    
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
    <
br/>
   <if 
condition="$mday[signature]">Signature$mday[signature]</span><br/></if
    <
td><img src="$avatarurl"></td>    
  </
td>
</
tr>
</
table>
<
br/> 

This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.

cdoyle 05-27-2005 01:06 PM

Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.

I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.

cdoyle 05-27-2005 01:11 PM

Quote:

Originally Posted by corriewf
PHP Code:

Add a template with name "memberoftheday" (without the quotes), and this content:

-------------------------------------------------------------------
<
table class="" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="80%" align="center">
<
tr>
  
  <
td>
    <
b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
    
Posts$mday[posts]</span><br/>
    
Reputation$mday[reputation]</span><br/>
    <if 
condition="$mday[age]">Age$mday[age]</span><br/></if>
    <
br/>
    
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
    <
br/>
   <if 
condition="$mday[signature]">Signature$mday[signature]</span><br/></if
    <
td><img src="$avatarurl"></td>    
  </
td>
</
tr>
</
table>
<
br/> 

This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.

Thanks, that does look better have the avatar on the right.

I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this

[COLOR=Black [SIZE=1 BMWBoard [/SIZE [/COLOR

I had to remove some brackets in this post to make it look the way it does on my member field.

You can really see what I'm talking about at
www.caraudiocentral.net


Is there anyway to make it display correctly?

Thanks again for your help.

Corriewf 05-27-2005 01:33 PM

Quote:

Originally Posted by cdoyle
Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.

I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.


Sounds like you have the time to run cron incorrectly set.....

Corriewf 05-27-2005 01:46 PM

Quote:

Originally Posted by cdoyle
Thanks, that does look better have the avatar on the right.

I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this

[COLOR=Black [SIZE=1 BMWBoard [/SIZE [/COLOR

I had to remove some brackets in this post to make it look the way it does on my member field.

You can really see what I'm talking about at
www.caraudiocentral.net


Is there anyway to make it display correctly?

Thanks again for your help.


This has nothing to do with the code or this hack itself but with cmps as the software is outside of the forum index so any link like say "navbar" have to be fully inputed along with smileys and BB code. The user who is currently member of the day is using BBcode which is currently not recognized by your cmps. You need to go to vbadanced.com and research getting that to work.

cdoyle 05-27-2005 01:58 PM

Thanks, I had a feeling it might have something to do with that.

Thanks again
Chris.

Corriewf 05-27-2005 02:00 PM

Quote:

Originally Posted by cdoyle
Thanks, I had a feeling it might have something to do with that.

Thanks again
Chris.


Yeah I am sure that its a easy fix, but I just dont have the time to research it for you right now......

cdoyle 06-04-2005 11:39 PM

Well I tried posting over at teh vbadvance forums about this, and the only response was to contact the author of the hack.

Here is what they said.

Quote:

You'll need to talk to the hack author about including the bb code parse logic in his hack. CMPS is just displaying the results of the hack code, in order to get the hack to parse the bb codes it'll have to be changed to call the vB function.
I really don't know anything about this stuff, so if anyone has an idea! THANKS :)

mfarmerhi 06-06-2005 08:17 PM

Ooo Ooo! Me too! Me too! LOL

If anyone has some direction on porting this for a Vbadvanced module, I'd really appreciate it.

~ Mark

bmroyer 08-21-2005 04:36 AM

How do I remove this hack from my website? Or atleast get it out of view if I cant delete the hack..I don't like it anymore. Do I just edit my template addons? Not sure how to go about it, thanks.


All times are GMT. The time now is 12:42 PM.

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.01435 seconds
  • Memory Usage 1,776KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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