Search found 82 matches

by gussie
Fri Feb 20, 2015 12:43 am
Forum: [3.0.x] Support Forum
Topic: [Split] Decrease database size?
Replies: 6
Views: 412

Re: [Split] Decrease database size?

I've never seen any instructions that suggested it was necessary to delete the search tables in order to upgrade form 3.0 to 3.1 so I don't know why you would think that was necessary? Your original answer implies the index is kept during the upgrad . Lumpy's answer contradicts that, and is useful ...
by gussie
Thu Feb 19, 2015 11:31 pm
Forum: [3.0.x] Support Forum
Topic: Integrating Wordpress & phpbb
Replies: 3
Views: 424

Re: Integrating Wordpress & phpbb

Thank you for posting the fix!!
by gussie
Thu Feb 19, 2015 11:29 pm
Forum: [3.0.x] Support Forum
Topic: [Split] Decrease database size?
Replies: 6
Views: 412

Re: [Split] Decrease database size?

you can always delete the index and rebuild it but that probably won't make that much difference. however, if you are going to upgrade to 3.1 then do not worry about it as those tables will not be moved over to the new board. So, this seems to say that you do not have to delete the search tables in...
by gussie
Thu Feb 19, 2015 9:52 am
Forum: [3.1.x] Support Forum
Topic: [split] Decrease database size?
Replies: 1
Views: 173

[split] Decrease database size?

Like the OP, I have a recent, but not latest, version of phpBB running. Mine is 3.0.10. The database size is 2.87GB and my install is pretty heavily modified (there are a few mods that I found here and elsewhere, and a couple of custom modifications) ... if you are going to upgrade to 3.1 then do no...
by gussie
Tue Aug 26, 2014 4:34 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I add an INCLUDE into Viewforum_body using Forum_ID
Replies: 9
Views: 642

Re: How can I add an INCLUDE into Viewforum_body using Forum

Thank you. It works now. Here is what I did wrong: 1. I was loading the S_EXTRACONTENTLOCATION and EXTRACONTENTLOCATION variables in the wrong location -- they should have been higher up in the viewforum.php file, but I was loading them down in the topicrow area. 2. I forgot that referencing the fil...
by gussie
Tue Aug 26, 2014 3:29 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I add an INCLUDE into Viewforum_body using Forum_ID
Replies: 9
Views: 642

Re: How can I add an INCLUDE into Viewforum_body using Forum

Thank you for clarifying that. No, I was not using those variables in the loop. I guess that's where my error is I thought I could use a variable that identified the forum so that if I have an extracontent.txt file for that particular forum, I could show it above or below the topic listing table. Ca...
by gussie
Tue Aug 26, 2014 3:19 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I add an INCLUDE into Viewforum_body using Forum_ID
Replies: 9
Views: 642

Re: How can I add an INCLUDE into Viewforum_body using Forum

Brf wrote:
Brf wrote: $forum_id
gussie wrote:$topic_forum_id
Yes - $topic_forum_id is what is used in viewforum.php
by gussie
Tue Aug 26, 2014 2:15 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I add an INCLUDE into Viewforum_body using Forum_ID
Replies: 9
Views: 642

Re: How can I add an INCLUDE into Viewforum_body using Forum

$extracontentlocation = /path/to/extracontent/{FORUM_ID}.txt; <!-- IF file_exists($extracontentlocation) --> $s_extracontentlocation = true; <!-- ELSE --> $s_extracontentlocation = false; <!-- ENDIF --> Three problems. 1. Strings need to be enclosed in "quotes" 2. {FORUM_ID} is not a phpB...
by gussie
Mon Aug 25, 2014 8:41 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I add an INCLUDE into Viewforum_body using Forum_ID
Replies: 9
Views: 642

How can I add an INCLUDE into Viewforum_body using Forum_ID

I've searched the forum for a solution that might address my problem but haven't yet seen something that could help me (I'll keep looking). I did find this article in the KB, and I wonder if it could be adapted for my purpose: https://www.phpbb.com/kb/article/howto-making-an-on%2Boff-switch-in-acp/ ...
by gussie
Thu Aug 21, 2014 9:11 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

If {JUST_DO_IT}, then <!--INCLUDE {JUST_DO_IT}.txt --> That would be <!-- IF {JUST_DO_IT} --><!-- INCLUDE {JUST_DO_IT} --><!-- ENDIF --> That worked!!! Thank you :) I was over-complicating it by not including the /path/to/the/file and the file extension. By putting the whole path and filename in as...
by gussie
Thu Aug 21, 2014 9:04 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

If {JUST_DO_IT}, then <!--INCLUDE {JUST_DO_IT}.txt --> That would be <!-- IF {JUST_DO_IT} --><!-- INCLUDE {JUST_DO_IT} --><!-- ENDIF --> Thank you! I'll give that a shot some official warning or explanation That's what post edit reasons are for. Right, but we have encountered situations where we mi...
by gussie
Thu Aug 21, 2014 8:37 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

why not create one or more custom bbcodes and not show them on the posting page. your mods/admins would know what they are and could post whatever this extra text is at will in any post on the board. Because it would have to be in a post, and that post would not appear conveniently at the bottom (o...
by gussie
Thu Aug 21, 2014 8:01 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

no, you don't put php in the html file. the point is that the php file is where you have to create whatever variable you are wanting to use. I have no idea what you are trying to accomplish but it doesn't matter. you create the variable with php , you put that new php code in the relevant php file....
by gussie
Thu Aug 21, 2014 6:26 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

Should I add the code that you suggest in the viewtopic.php file? No, it's the part that renders the template INCLUDE instruction, hence I didn't add any file and position where to add this. From the code you can see that INCLUDE either accepts variables ( {VARIABLE} ) or filenames ( /to/file.html ...
by gussie
Thu Aug 21, 2014 2:58 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How can I <!-- INCLUDE --> a filename from a variable?
Replies: 13
Views: 1446

Re: How can I <!-- INCLUDE --> a filename from a variable?

I tried to add this line in viewtopic.php just above // Send vars to template preg_match_all('#<!-- INCLUDE (\{\$?[A-Z0-9\-_]+\}|[a-zA-Z0-9\_\-\+\./]+) -->#', '<!-- INCLUDE path/to/' . $topic_data['extra_text'] . '.html -->', $extratextcode, $matches); Then in the // Send vars to template section, I...

Go to advanced search