PDA

View Full Version : Idea!! Is there any way?


staffurdu
03-02-2011, 08:38 AM
Hello!

Problem:
I have forum which allows English as well as my local language. Some members write titles in English and some in Urdu. I myself uses both of them. THIS causes a grave issue when members search before posting to see if that thing is already on forum or not. There are also many other problems this creates.

vB4 Have:
You can see vBulletin has newthread template in which there is written Title and under it there is a text box to enter text as title.

Solution:
Is there any way to include one more text box under the title box? By changing default Title to Title in English and name new text box to Title in Local Language?

I think this solution is easy if someone know HTML/PHP. Can someone help me?

AND one more thing I want to show text entered in Title in Local Language in my postbit? I dont know if its easy or not, just dont have any idea; ALSO, can be shown in showthread template; whatever is easy. It should be shown somewhere otherwise entering it would go in a vain.
ALSO, this text field should be a necessary. Every member should enter title in English as well as in Local Language.

I appreciate if anyone can help. Those who know vBulletin 4 well, please at least tell me if its possible or not?

Videx
03-03-2011, 11:44 PM
It doesn't sound very easy to me. Even if you managed to implement a second search box, people wouldn't use it.

I think merging threads is just what you have moderators for.

staffurdu
03-04-2011, 12:33 AM
It doesn't sound very easy to me. Even if you managed to implement a second search box, people wouldn't use it.

I think merging threads is just what you have moderators for.
May be my explanation wasn't good because you got it wrong. I don't want to implement a second search box, it's just that if there will be two title boxes then default vBulletin Title named as Title in English will always be in English because there will be another option for Title in Local Language. So, everyone should just search in English and I can just place a small note in search template.

I think placing a text box is very easy, even I'm (with a very little knowledge) can do it by searching ways from w3schools BUT what I further want is to use whats written in this extra box. Is it possible to use it somehow? If yes, then how?

your24hourstore
03-10-2011, 11:41 AM
may be easier to put a sticky in all forums that asks people posting to use both llike
this is the title /rqrq wrfsf afsf sfsaf
sorry don't know any other language :)

--------------- Added 1299764503 at 1299764503 ---------------

they could still find it in searching titles that way

staffurdu
03-10-2011, 12:16 PM
may be easier to put a sticky in all forums that asks people posting to use both llike
this is the title /rqrq wrfsf afsf sfsaf
sorry don't know any other language :)

--------------- Added 10 Mar 2011 at 18:41 ---------------

they could still find it in searching titles that way
I don't know much BUT I'm sure that using long titles (which will create longer seo urls with vbseo) with longer urls will effect seo. It's just my thought, I'm NOT sure about it.

I ALSO thought of using titles in English as well as in Local Language (its Urdu) BUT I didn't go with this option ONLY because of SEO effect.
FOR EXAMPLE:
there is currently a thread with title "ایکشن ایجنسی عمران سیریز از مظہر کلیم مارچ ۲۰۱۱"
it will become "Action Agency Imran Series by Mazhar Kaleem March 2011 / ایکشن ایجنسی عمران سیریز از مظہر کلیم مارچ ۲۰۱۱".
ISN'T IT TOO LONG? Also I dont think vB allows so much longer text in title field.

So, will longer thread title and thread vbseo url will have a bad effect on seo?

your24hourstore
03-10-2011, 12:36 PM
yes its a big one and not sure of the seo aspects I would suspect that if it was to long google would just truncate it. But if a users searches in that language it would be indexed im sure, the problem may be the limit of titles character limits

--------------- Added 10 Mar 2011 at 08:37 ---------------

But how would google handle two titles isn't that risk also of a seo boo boo?

--------------- Added 1299768050 at 1299768050 ---------------

title1:Action Agency Imran Series by Mazhar Kaleem March 2011
ایکشن ایجنسی عمران سیریز از مظہر کلیم مار۲۰۱۱title2:


would be how google see the two lines

staffurdu
03-10-2011, 01:22 PM
yes its a big one and not sure of the seo aspects I would suspect that if it was to long google would just truncate it. But if a users searches in that language it would be indexed im sure, the problem may be the limit of titles character limits
character limits can be changed for titles field. i have just found in options. but still there is a seo issue because all my traffic comes from search engines.

--------------- Added 10 Mar 2011 at 08:37 ---------------

But how would google handle two titles isn't that risk also of a seo boo boo?
I will not actually use both titles. I would like to include text from Second Title Field in description.


If there is NO seo issue with long titles & urls, then its best option to use both languages together.
Can someone out there with SEO knowledge confirm about it?

your24hourstore
03-10-2011, 02:23 PM
you know there is a mod that does a modification to the title for seo, if the title was long it would fix it for seo , I'm not sure what mod and if its up to date for 4.1.1, but I know i have seen it

staffurdu
04-01-2011, 03:41 AM
Help plzzzzzzzzzz

I just need to store some text (just like title text is being saved in vB) and then show it in POSTBIT or in SHOWTHREAD. Is it too much difficult?

BirdOPrey5
04-03-2011, 11:11 AM
(Responding to your PM)

If you need to save it so that other people can see it or that it will be saved between sessions, than yes, it is more difficult than a normal issue because it means altering the database and making custom SQL queries and associated code both to save the text and read it back later, as well as the php code to handle it and the associated template edits needed to display it. It is not an "easy" task.

It might be a little easier if you can store the data as a custom user profile field, would mean no database altering is needed but depending on who enters the text and who is supposed to see it could be fairly involved. Can you give more details- what type of text? Is it custom for each user? Is it a message you are giving that everyone will see?

staffurdu
04-03-2011, 01:42 PM
If you need to save it so that other people can see it or that it will be saved between sessions, than yes, it is more difficult than a normal issue because it means altering the database and making custom SQL queries and associated code both to save the text and read it back later, as well as the php code to handle it and the associated template edits needed to display it. It is not an "easy" task.
I REALLY dont know what you are talking about. I dont have much knowledge about php, mysql and vb coding.

It might be a little easier if you can store the data as a custom user profile field, would mean no database altering is needed but depending on who enters the text and who is supposed to see it could be fairly involved. Can you give more details- what type of text? Is it custom for each user? Is it a message you are giving that everyone will see?
What I want to do is very simple as described in above posts. Simply want to add another text field below the "Title" textbox. AND the text entered in this field should be able to shown in potbit template like we can show text of "Title" field in postbit by just entering "$post['title']" in postbit.

We will have to save text for each thread as each thread title text is being saved and shown later. Saving it as a profile field doesn't seems to be a correct way and I dont think this would work.

Lynne
04-03-2011, 07:07 PM
This is not as easy as you seem to think it will be. You will need to:
- add a new field to the thread table
- add a new field to the post table (optional?)
- modify the save post function to save this new field when a new thread or post are made
- modify the get threads query to get this new post title also
- modify any display templates (or the code) to display this new post title if that language is selected
- modify search to allow for searching of this field (optional)

This isn't some modification anybody is likely to write for you unless they have need of it themselves and want to code it in such a way to share. It's much more involved than just adding some new text area to your new thread page.

BirdOPrey5
04-03-2011, 08:16 PM
Sorry I didn't see there was a thread above your question when I first followed your link.

Basically what Lynne says, this isn't easy.

There is a mod for VB 3.8 that does something similar:
https://vborg.vbsupport.ru/showthread.php?t=200259

But it will not work with 4.x.

staffurdu
04-04-2011, 01:49 AM
This is not as easy as you seem to think it will be. You will need to:
- add a new field to the thread table
- add a new field to the post table (optional?)
- modify the save post function to save this new field when a new thread or post are made
- modify the get threads query to get this new post title also
- modify any display templates (or the code) to display this new post title if that language is selected
- modify search to allow for searching of this field (optional)


This isn't some modification anybody is likely to write for you unless they have need of it themselves and want to code it in such a way to share. It's much more involved than just adding some new text area to your new thread page.
hmmmmmmmm ok

Sorry I didn't see there was a thread above your question when I first followed your link.

Basically what Lynne says, this isn't easy.

There is a mod for VB 3.8 that does something similar:
https://vborg.vbsupport.ru/showthread.php?t=200259

But it will not work with 4.x.
Oh! It's almost same. What I want can be almost done by this hack. There are many hacks of vb3 which are working in vb4 too. I will try this one. Thanks BirdOPrey!!

BirdOPrey5
04-04-2011, 07:47 PM
I know for a fact that hack won't work on VB4, but it's an excellent start if you or someone you find is willing to attempt changing it to your needs.