Post as weblink

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Post as weblink

Beitrag von tuuk »

I found a mod Kartsen (webmaster@oxpus.de) created for phpBB (Forumtitle as Weblink) and it works great!!!
But I'm looking for something else, which is almost similar to the mod he created.

I want to add posts, but I want a post to be a weblink.

I found out ( also thanks to the mod) how to change the database and to add extra fields.

Now I don't know how to get the post as web link..

Can anybody help me??

Thanx in advanced!

Ivan.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Where will be a post a weblink? On viewforum?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

In this forum you have:

phpBB helpdesk (the forum main category)
phpBB Request (the forum category)
Post as weblink (this post which should become the weblink when you click it)

You made a mod to make the forum (=forum catergory) as a weblink.
Now I want a post to be a weblink and not the forum category.

Is it a bit more clear? If not let me know, I will setup a site quickly and explain it better!
Benutzeravatar
dagobert
Beiträge: 457
Registriert: Mo 08.Mär, 2004 13:46
Wohnort: Altenkirchen
Kontaktdaten:

Beitrag von dagobert »

i think he wants the topic also be like a weblink

e.g.
../topic3245.html
instead of
../viewtopic.php?p=3245

i dont know oxpus mod, but this one does it.....
(sorry, it is german, but the first post should be up to date)

http://phpbb.de/viewtopic.php?t=44090&h ... =shorturls
Zuletzt geändert von dagobert am Mo 24.Mai, 2004 14:21, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@tuuk
Now I understand what you mean, but I think you mean topics, not posts, or?
Hm, I'll take a look at this and inform you here later. But I can not tell you any release date.
BTW: Shall I integrate auth levels for setting weblinks on a topic?

@dagobert
This I'd found, too. Nice changes, but I think some mods will not work with this and already greates long urls (heavy to increase this for all pages :( ).
But I think tuuk means to switch a topic title in the forum view into a weblink. Not bad idea, this can be usefull for me, too.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

Oxpus is right! I'm using phpBB not as a forum, but as a database with a search engine!

To get an idea, go to http://www.vandertuuk.com/helpdesk/
Choose Exact Globe 2003 (top left corner!) and then choose 'module'

Here I have many Exact modules from a specific program from Exact. And through mail2forum (http://m2f.sourceforge.net/) I'm filling my database.

The structure is:
Exact Globe 2003-->activa-->the documents..

Every document has a link and I want this link to be shown when you choose the document, instead of the tekst (without pictures..) you get now.

Try if you can connect to my server (it is a pentium I machine and many times it crashes, then again for testing purposes it's great!!)

I hope I explained it fully now!

Thanx!

p.s. I understand and speak German, but writing is something else and then I look like a little child with my grammar errors..
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, I'll code this the next days.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Here is the mod. Not the best solution, but it works:
http://www.oxpus.de/mmanager_detail.php?mod_id=39
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

I installed the mod twice, but it doesn't work for me.
I got an error on viewforum.php.

When installing the mod, in vieforum.php I had to look for: $template->assign_block_vars('row', array());

I can't find that row, but the next line I can find.

Also in templates/subSilver/subSilver.cfg, I can't find: $images['folder_poll_new'] = "$current_template_images/folder_poll_new.gif";

I just added the row: $images['folder_weblink'] = "$current_template_images/folder_weblink.gif";
and it works.

But after adding this, I can't edit the post anymore.

If it is possible, try something like this:
$sql[] = "ALTER TABLE `" . $table_prefix . "posts_text` ADD `title_is_link` TINYINT( 1 ) DEFAULT '0' NOT NULL,
ADD `weblink` VARCHAR( 200 ) NOT NULL,
ADD `forum_link_icon` VARCHAR( 200 ) NOT NULL";

Change posting.php so when you edit the post, you can add a url which is stored in topics_text in the column table weblink.
When logged in as administrator, you can edit the post.

Let me know what you think about this.

(p.s. I'm going on holiday, so you in a week!)

Greetings,

mE.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Please attach your viewtopic.php. I'll take a look to install the part there.

A new field I'd not uses, because the post_text will not be uses, if a topic is switched to a link ;). So this solution I'll not coded.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

I did a new install of phpbb, and the link works now (guess there is something strange in my installation, maybe to many mods.. :D :D :D )

I used the standard viewtopic.php from the instalation of phpbb.

But you don't agree to make it a new database field?

mE.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I use the unneeded field "post_text", if a topic will be a link, so a new field is not required.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

But will this information be indexed by the search engine?
If only it is possible to edit this post, then everything should be ok

Great coding by the way!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The post itself isn't indexable by a search engine, because this will not see the post, just the link and follow it.
You only can edit the post, if you are a mod or admin, this isn't possible for user or guests and searchbots.
Great coding by the way!
Thanks.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

Well It took me a while, but I'm back..

When I look in the database, I see the table phpbb_search_wordlist

The questions:
1. How is this table filled?
2. when I make a post as a weblink, the info I put into the post isn't added to this table, so when I search for something, the only thing I can find is the topic title and not the content!

Am I right?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The table phpbb_search_wordlist will be filled on each new post, so the link on topics which will be weblinks are saved, too for futher searching.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
tuuk
Beiträge: 8
Registriert: Mo 24.Mai, 2004 11:26

Beitrag von tuuk »

what will hapen if I fill the complete database and afterwards I will chang the post to a weblink? The phpbb_search_wordlist will still be filled and active, eventhought I will manually make the post a weblink?

Does this make any sense?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

This will not affect the search table, because the search words will be saved on submitting the post. Changing the post to a weblink will not saving the search words again.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten