Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Country Flag and simcard model and .. Details »»
Country Flag and simcard model and ..
Version: 1.00, by yaghoub yaghoub is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.0 Beta 3 Rating:
Released: 11-18-2009 Last Update: 11-18-2009 Installs: 34
 
No support by the author.

excuse I am Persian and my English is not good
this mod only work in vbulletin4 and not work on other version and other version have in this site
whit this mod you can show your Country Flag and simcard and your car model and your phone model and …. In user profile
1.you must creat the new fild whit this properties
go to Admin Control Panel / User Profile Fields / Add New User Profile Field.
In window to right click drop down message bar and change to Single Selection Menu
In the User Profile Field, sectiom in Title area call it Country Flag
(a)Discription: Add a country flag to your profile.
(b)Profile Field Category check Uncategorized
(c)Options:Add the Country text file attached, just copy and paste the text file to this field.
(d)Set Default:None
(e)Display Order: should be set by default to next available one write this down will be needed later.
(f)Field Required: Set this to Yes, at registration and profile updating.
(g)Field Editable by user: Yes
(h)Private Field: Check No
(i)Field Searchable on Members List: Check No
(j)Show on Members list: Yes
Option Input:
Allow user to input their own value for this option: No
Max length of allowed user input: 100
Field Length: 25
Regular Expression: Blank
Display Page:
Which page displays this option?: Options:Thread Viewing

2. Upload the Flags File to server be sure to place in /buttons/flags on each skin that you wish to use this on.
3.in the Postbit Legacy of your Template
Locate: {vb:raw post.rank}{vb:raw post.usertitle}
And add below this cod:
<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field5}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->
field5 will need to be change to what ever field number was created befor in 1 stage foer example field6 or field7 so the number of field change and You must replice the number of new fild number
((now you can go to ((seetins)) in your site and chose ((edit optins)) and chose your Country Flag
for simcard and phone and …. You must repeat this stage and replice the image white your attachments
the passwor of rar file is: yahoomobil.ir



the vbulletin is the best and the best . we and you must help to is beter

excuseme my internet speed very slow .its dialup so i can not upload my file i tray secend but canot upload my file i upload tex of flag and screensht


mr Lynne can you help me and uoload pictuer of flag and sim here
[ATTACH][ATTACH]Attachment 106406[/ATTACH][/ATTACH]

Download Now

File Type: txt Country list.txt (2.4 KB, 451 views)

Screenshots

File Type: jpg screenshot2.jpg (61.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-25-2009, 11:52 PM
bart6767 bart6767 is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant seem to find this

.in the Postbit Legacy of your Template
Locate: {vb:raw post.rank}{vb:raw post.usertitle}
Reply With Quote
  #23  
Old 11-26-2009, 12:07 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bart6767 View Post
cant seem to find this

.in the Postbit Legacy of your Template
Locate: {vb:raw post.rank}{vb:raw post.usertitle}
How did you get the OPTIONS.xml loaded?
Reply With Quote
  #24  
Old 11-26-2009, 05:08 AM
yaghoub's Avatar
yaghoub yaghoub is offline
 
Join Date: Oct 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

find this code {vb:raw post.usertitle}

and add after it
Reply With Quote
  #25  
Old 11-26-2009, 08:44 AM
bart6767 bart6767 is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
How did you get the OPTIONS.xml loaded?
(c)Options:Add the Country text file attached, just copy and paste the text file to this field.
Reply With Quote
  #26  
Old 11-26-2009, 12:42 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
Can I put all the flags in one folder then upload it and then set it as I set the feildX ID?
Quote:
Originally Posted by bart6767 View Post
(c)Options:Add the Country text file attached, just copy and paste the text file to this field.
See my quote. I don't want to have a bunch of scattered gif images. Is this possible? I got the profile set up now but need to know about putting all the flags in one folder to keep organized.
Reply With Quote
  #27  
Old 11-26-2009, 12:59 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can put all flags in a folder ie. i have put all flags in images/buttons/flags and they all work you just need the code :-

This puts the flags central under the avatar

In the Postbit Legacy template, find this:



HTML Code:
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
		</a>
		</vb:if>
Add this after the above:



HTML Code:
<center><br><!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field#}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) --></br></center>
change # to your field number
I have uploaded flags to here as they was to big for one here :-
Code:
 http://gadsx.co.uk/flags.rar
Reply With Quote
  #28  
Old 11-26-2009, 01:31 PM
bart6767 bart6767 is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant get the flags to show up ?
Reply With Quote
  #29  
Old 11-26-2009, 01:41 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using posbit as I like that one and getting this.

The following error occurred when attempting to evaluate this template:

The conditional on line 135 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.


This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

This is the trailing </if> that is causing this.

Code used:

Code:
<!--  Flags Start  -->
<if condition="$post['field11']">
	Country: <img src="http://www.Your ForumAddress.com/images/buttons/Flags/$post[field11].GIF"/></if>
<!--//  Flags End  -->
]
It just says users flag under the username when I remove the trailing </if>

If I use this

Code:
<br><!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field11}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) --></br>
same thing.
Reply With Quote
  #30  
Old 11-26-2009, 02:17 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Charlie,


You need to add a folder called "buttons" in your images folder. images/buttons


You are supposed to add ALL the contents of the 3 folders (zips) that in my attachment Here into the one folder named "buttons".
Reply With Quote
  #31  
Old 11-26-2009, 02:17 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
Using posbit as I like that one and getting this.

The following error occurred when attempting to evaluate this template:

The conditional on line 135 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.


This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

This is the trailing </if> that is causing this.

Code used:

Code:
<!--  Flags Start  -->
<if condition="$post['field11']">
	Country: <img src="http://www.Your ForumAddress.com/images/buttons/Flags/$post[field11].GIF"/></if>
<!--//  Flags End  -->
]
It just says users flag under the username when I remove the trailing </if>

If I use this

Code:
<br><!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field11}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) --></br>
same thing.


Have you got a screenshot of what you have doen so far?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 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.04679 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete