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)
-   -   uShop - Public Opinions v1 (https://vborg.vbsupport.ru/showthread.php?t=68746)

Reeve of shinra 08-25-2004 10:00 PM

uShop - Public Opinions v1
 
This is a simple add-on for the ushop that adds an option to buy a 'public opinion' for another user.

Essentially it works just like the 'change other users title' option (in fact, its mostly same code). The only difference is that the user who recieved the public opinion can't go back and change it.

This is good for boards that want a feature like the change other users title option but dont want it to affect titles.

-----------------------------------------

Step 1: Run this query
PHP Code:

ALTER TABLE `userADD `uttstore_poVARCHAR250 NOT NULL 

Step 2: Upload the attached file into the UTTStore folder

Step 3: Create a new store action for it in the admin cp under 'utt store hack' => 'add action'.

For the short name, I used "po"

Step 4: Add this in any templates you would like the PO displayed (ie: postbit)

PHP Code:

            <if condition="$post['uttstore_po']">            
            <
div class="smallfont">$post[uttstore_po]</div></if> 



And thats it.

Some stuff for version 2 (if and when I ever get around to it)

* Ability to use bbcode
* Time limit on changes
* Rep influence on how long PO's last


Enjoy and please let me know if you use this.

Zachery 08-26-2004 10:10 PM

Better name might be uShop :)

Ill poke matt about getting the names correct in .96/1

msimplay 08-27-2004 06:49 AM

screenshot ?

Reeve of shinra 08-27-2004 01:43 PM

A screen shot really isnt needed. It looks exactly like the title, it just depends on where you want to put it. :)

Edit: I added a screen shot but you can add what you want in the templates.

deathemperor 08-27-2004 02:06 PM

I love this: "* Rep influence on how long PO's last"
since my board will have Rep as a important part in, and I shouldn't let any one do anything they want but just the most respectful ones maybe.
looking for that.

y2krazy 08-29-2004 11:15 PM

/me clicks install!

yoyoyoyo 01-12-2005 04:06 PM

Could I please have an example of where in the postbit template I should add this to make it look like the screenshot? would I put it after this?:

PHP Code:

                <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> 


Reeve of shinra 01-27-2005 02:50 AM

I actually have it under teh avatar but if you wanted it under thier usertitle, then yeah that looks right.

carolmyt 02-12-2005 04:53 PM

Is there an option that allows admins to delete these if necessary? I want to prevent this from being used maliciously.


All times are GMT. The time now is 06:14 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.01063 seconds
  • Memory Usage 1,727KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete